package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@ApiModel(value = "appNoticeMessage", description = "app公告消息实体")
@Data
@TableName("app_notice_message")
public class AppNoticeMessage {
    @ApiModelProperty("公告ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("公告标题")
    private String title;

    @ApiModelProperty("发布状态：0草稿 1已发布")
    private Integer status;

    @ApiModelProperty("富文本内容（HTML）")
    private String content;

    @ApiModelProperty("封面图片URL")
    private String coverUrl;

    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    @ApiModelProperty("删除标志：0正常 2删除")
    private String delFlag;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("1公告")
    private Integer type;
}
